package com.sani.study2025.conctroller;

import com.sani.study2025.enums.Level;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/test")
public class MyTestController {

    @GetMapping("/convert")
    public String testEnum(@RequestParam("level") Level level) {
        return "Received level: " + level;
    }
}
